package com.common;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName : R
 * @Auther : acerolan@foxmail.com
 * @Data : 2024/7/25 20:36
 * @Description :
 */

public class R {

    private int code=200;
    private String message="成功";
    private Map<String, Object> data = new HashMap();

    public R add(String k,Object v){
        this.data.put(k,v);
        return this;
    }
    public int getCode() {
        return code;
    }

    public R setCode(int code) {
        this.code = code;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public R setMessage(String message) {
        this.message = message;
        return this;
    }

    public Map<String, Object> getData() {
        return data;
    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }

}
